<?php

class Form_Admin_Template_AddElement extends Form
{
	function init()
	{
		$this -> addChild('text', 'hl', array('label' => 'block'));

		$this -> addChild('text', 'area', array('label' => 'area'));

		$this -> addChild('text', 'pid', array('label' => 'pid'));

		$this -> addChild('text', 'title', array('label' => 'title'));
		
		$this -> addChild('text', 'position', array('label' => 'position'));

		$this -> addChild('radio', 'active', array(
			'label' => 'active',
			'multiOptions' => array(
				0 => 'no',
				1 => 'yes'
			),
			'value' => 1
		));

		$this -> addChild('group', '_buttons');

		$this -> _buttons -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
